﻿@model School.Models.AdminSet

@{
    ViewBag.Title = "添加用户";
}

<h2>添加用户</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>添加用户</legend>

        <div class="editor-label">
            用户名
        </div>
        <div class="editor-field">
            <input type ="text" name ="Name" class ="text" />
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            密码
        </div>
        <div class="editor-field">
        <input id="Password1" type="password" name ="PassWord" />
            
        </div>

        <div class="editor-label">
            角色
        </div>
        <div class="editor-field">
            <select id="Select1" name="Role">
                <option>teacher</option>
                <option>student</option>
            </select>
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
